AddSigner
The AddSigner API allows users to add additional signer accounts to an existing Stellar account. Signer accounts are entities that can authorize transactions on behalf of the main account.
Method: POST
{{URL}}/jsonrpc
Headers
Name | Value |
---|---|
Content-Type | application/json |
Example
Response Parameters
Parameter | Description |
---|---|
SourceAccount | Object |
PublicKey Mandatory | String The public key of the account to which the additional signers will be added. Ex: "GCPLZXWATKYY3OXXHDOU3TSIUNZA5ZVBMM6P6ONGZQJHICXSFGFWNBPW" |
PrivateKey Mandatory | String The private key associated with the source account for authentication. Ex: "" |
sponser | Object |
PublicKey Mandatory | String The public key of the account acting as the sponsor for the transaction fee. Ex: "GAUMO2B3RA6HRNDEVZUZAV5ZP2YE5V37UZTIFMKKRAH2IK5XDTZBJCZ3" |
PrivateKey Mandatory | String The private key associated with the sponsor account for authentication. Ex: "" |
SignerAccounts | Array |
PublicKey Mandatory | String The public key of the signer account to be added. Ex: "GAUMO2B3RA6HRNDEVZUZAV5ZP2YE5V37UZTIFMKKRAH2IK5XDTZBJCZ3" |
Weightage Mandatory | String The weightage or level of authority assigned to the signer account in the range of 0 to 255. Ex: "1" |
Body
{
"SourceAccount": {
"PublicKey": "GCPLZXWATKYY3OXXHDOU3TSIUNZA5ZVBMM6P6ONGZQJHICXSFGFWNBPW",
"PrivateKey": ""
},
"sponser": {
"publicKey": "GAUMO2B3RA6HRNDEVZUZAV5ZP2YE5V37UZTIFMKKRAH2IK5XDTZBJCZ3",
"PrivateKey": ""
},
"SignerAccounts": [
{
"PublicKey": "GAUMO2B3RA6HRNDEVZUZAV5ZP2YE5V37UZTIFMKKRAH2IK5XDTZBJCZ3",
"Weightage": "1"
}
]
}
Response: 200
Response Parameters
Parameter | Description |
---|---|
hash | String A unique identifier representing the transaction hash of the AddSigner operation. Ex: "fbef2e61b8961114a285a8d1ba9c20076f13f636db4fc452dae64bf763390724" |
{
"hash": "fbef2e61b8961114a285a8d1ba9c20076f13f636db4fc452dae64bf763390724"
}